<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>个人中心</title>
<link href="${ctxStatic }/xiake/css/list.css" rel='stylesheet' type='text/css' />
<script type="text/javascript">
	$(function(){
		$('#inf_safe').trigger('click');
	});
</script>
</head>
<body>
	<div class="container font_normal_size"> 
		<c:set var="siderMenuName" value="个人中心"/>
		<%@ include file="/WEB-INF/views/modules/base/siderMenu.jsp"%>
		<div class="container_con">
			<div class="inf_switch ">
				<div id="inf_personal">信息设置</div>
				<div id="inf_safe">账户安全</div>
			</div>
			<form id="modifyInfoForm" action="${ctxFront }/modifyInfo" method="post">
				<input type="hidden" name="id" value="${user.id }"/>
				<div id="inf_personal_con" class="container_information">
					<c:if test="${sessionScope.front_user.office.parent.id ne '3' }">
						<div>
							<label>昵称</label>
							<input type="text" name="name" value="${user.name }"  />
						</div>
						<div>
							<label>邮箱</label>
							<input type="text" name="email" value="${user.email }"  />
						</div>
						<div>
							<label>常用联系电话</label>
							<input type="text" name="mobile" value="${user.mobile }" disabled/>
						</div>
					</c:if>
					<c:if test="${sessionScope.front_user.office.parent.id eq '3' }">
						<div>
							<label>企业名称</label>
							<input type="text" disabled value="${user.office.name }"/>
						</div>
						<div>
							<label>常用邮箱</label>
							<input type="text" name="email" value="${user.email }"/>
							<span class="red">*</span>
						</div>
						<div>
							<label>默认经办人</label>
							<input type="text" name="name" value="${user.name }"/>
						</div>
						<div>
							<label>经办人手机</label>
							<input type="text" value="${user.mobile }" disabled/>
						</div>

					</c:if>
					<div>
							<div class="inf_sum" onclick="$('#modifyInfoForm').submit();">保存</div>
					</div>
				</div>
			</form>
			<form id="modifyPwdForm" action="${ctxFront }/modifyPwd" method="post">
				<div id="inf_safe_con" class="hide container_information">
					<div>
						<label>原始密码</label>
						<input type="password" name="oldPassword"/>
					</div>
					<div>
						<label>新密码</label>
						<input type="password" name="newPassword"/>
					</div>
					<div>
						<label>确认密码</label>
						<input type="password" name="repeatPassword"/>
					</div>
					<div>
						<div class="inf_sum" onclick="$('#modifyPwdForm').submit();">保存</div>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="clear"></div>
</body>
</html>